package com.jsj.dao;

import com.jsj.domain.Problem;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ProblemDao {
    List<Problem> queryByCreator(String creator);

    Problem queryById(int id);

    List<Problem> queryByTopic(int topicId);
    List<Problem> queryByTopicId(int topicId);

    List<String> queryTitleByTopicId(int topicId);

    Integer insert(Problem problem);

    Integer delete(int id);

    Integer update(Problem problem);
    Problem queryNumber(Integer id);
}
